<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <slot-demo
        ><p>aaa</p>
        hh</slot-demo
      >
    </div>
    <script src="../lib/vue.js"></script>
    <script>
      Vue.component('slot-demo', {
        template: `
          <div>
            <h3>标题</h3>
            <slot></slot>
            <input type="button" value="ok">
          </div>
        `,
      })
      new Vue({
        el: '#app',
      })
    </script>
  </body>
</html>
